package com.azzcs.mvc.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: wzg
 * @Date: 2020/12/28 下午4:35
 */
public interface HandlerInterceptor {
    default boolean preHandle(HttpServletRequest req, HttpServletResponse resp,Object handler){return false;}
    default void postHandle(HttpServletRequest req, HttpServletResponse resp,Object handler){}
    default void afterCompletion(HttpServletRequest req, HttpServletResponse resp,Object handler){}
}
